<?php
 $active=request()->controller().'/'.request()->action();
?>
<nav class="navbar-default navbar-static-side" role="navigation">
  <div class="nav-close">
    <i class="fa fa-times-circle"></i>
  </div>
  <div class="sidebar-collapse">
    <ul class="nav" id="side-menu">
      <li class="nav-header">
        <div class="dropdown profile-element">
          <a data-toggle="dropdown" class="dropdown-toggle" href="#">
            <span class="clear">
              <span class="block m-t-xs">
                <strong class="font-bold">{$info.account}</strong>
              </span>
              <span class="text-muted text-xs block" style="padding-top: 10px;">超级管理员
                <b class="caret"></b>
              </span>
            </span>
          </a>
          <ul class="dropdown-menu animated fadeInRight m-t-xs">
            <li>
              <a class="J_menuItem" href="{:url('Index/personal_center')}" onclick="close_center()">个人资料</a>
            </li>
            <li class="divider"></li>
            <li>
              <a href="javascript:void(0)" onclick="up_login()">安全退出</a></li>
          </ul>
        </div>
        <div class="logo-element">H+</div>
      </li>
      <li>
        <a class="J_menuItem" href="/admin/home/index.html" data-index="1">
          <i class="fa fa-home"></i>
          <span class="nav-label">主页</span>
        </a>
      </li>
      <li>
        <a href="#">
          <i class="fa fa fa-asterisk"></i>
          <span class="nav-label">PC网站管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
          <li>
            <a class="J_menuItem" href="{:url('Banner/lists',array('type'=>1))}">banner</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Banner/lists',array('type'=>2))}">合作机构</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Banner/lists',array('type'=>3))}">友情链接</a>
          </li>
          <li>
            <!--<a class="J_menuItem" href="{:url('System/set',['id'=>'1'])}">{$Home}</a>-->
            <a href="#">{$Home} <span class="fa arrow"></span></a>
            <ul class="nav nav-third-level">
              {volist name="homelist" id="homelist"}
              <li><a class="J_menuItem" href="{:url('Article/lists',array('id'=>$homelist['id']))}">{$homelist['article_category_name']}</a>
              </li>
              {/volist}
            </ul>
          </li>
          <li>
            <!--<a class="J_menuItem" href=" ">{$Loan}</a>-->
            <a href="#">{$Loan} <span class="fa arrow"></span></a>
            <ul class="nav nav-third-level">
              {volist name="loanlist" id="loanlist"}
              <li><a class="J_menuItem" href="{:url('Article/lists',array('id'=>$loanlist['id']))}">{$loanlist['article_category_name']}</a>
              </li>
              {/volist}
            </ul>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Adviser/lists')}">{$Consultant}</a>
          </li>
          <li>
            <a href="#">{$LoanHelp} <span class="fa arrow"></span></a>
            <ul class="nav nav-third-level">
              <li><a class="J_menuItem" href="{:url('Article/lists',array('id'=>8))}">贷款指南</a>
              </li>
            </ul>
            <!--<a class="J_menuItem" href="{:url('Article/lists',['id'=>'4'])}">{$LoanHelp}</a>-->
          </li>
          <li>
            <a href="#">{$About} <span class="fa arrow"></span></a>
            <ul class="nav nav-third-level">
              {volist name="aboutlist" id="aboutlist"}
              <li>
                {if condition="!empty($aboutlist['chlid'])"}
                <a href="#">{$aboutlist['article_category_name']} <span class="fa arrow"></span></a>
                <ul class="nav nav-third-level">
                  {volist name="$aboutlist['chlid']" id="v"}
                  <li><a class="J_menuItem" href="{:url('Article/lists',array('id'=>$v['id']))}">{$v['article_category_name']}</a>
                  </li>
                  {/volist}
                </ul>
                {else/}
                <a class="J_menuItem" href="{:url('Article/edit',array('cid'=>$aboutlist['id']))}">{$aboutlist['article_category_name']}</a>
                {/if}
              </li>
              {/volist}
            </ul>
          </li>
        </ul>
      </li>
      <li>
        <a href="#">
          <i class="fa fa fa-navicon"></i>
          <span class="nav-label">数据管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
          <li>
            <a class="J_menuItem" href="{:url('Loan/lists')}">数据导入</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Loan/category_list')}">数据分类</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Loan/record')}">导入记录</a>
          </li>
        </ul>
      </li>
      <li>
        <a href="#">
          <i class="fa fa fa-user"></i>
          <span class="nav-label">会员管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
            <li>
              <a class="J_menuItem" href="{:url('AdminMember/lists')}">会员列表</a>
            </li>
            <li>
              <a class="J_menuItem" href="{:url('AdminMember/certificate')}" style="position: relative">
                {if condition="$certificate_count neq 0"}
                  <div style="border-radius: 5px;width: 10px;height: 10px;background-color: red;position: absolute;right: 101px;top: 1px;"></div>
                {/if}
                凭证列表
              </a>
            </li>
            <li>
              <a class="J_menuItem" href="{:url('Platform/lists')}">充值记录</a>
            </li>
        </ul>
      </li>
    </ul>
  </div>
</nav>